package com.houseman.workFlow.service;

import java.util.List;

import com.houseman.workFlow.bean.ApprovalInfo;

/**
 * 流程审批过程信息
 */
public interface ApproveService {

	/**
	 * 创建流程审批信息
	 * @throws Exception
	 */
	public void saveApproveInfo(ApprovalInfo info) throws Exception;
	
	/**
	 * 获取流程审批信息
	 * 审批时间排序(最新的在前)
	 * @param workId
	 * @return
	 * @throws Exception
	 */
	public List<ApprovalInfo> queryAppInfoByWorkId(int workId) throws Exception;
	
	/**
	 * 获取最新流程审批信息
	 * @param workId
	 * @return
	 * @throws Exception
	 */
	public ApprovalInfo queryNewestByWorkId(int workId) throws Exception;
}
